<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container" style="margin-top:30px;">
    <div class="form-inline">
        <form action="/search" method="get">
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">国家</span>
                </div>
                <input type="text" class="form-control" name="country"th:value="${country}">
                <div class="input-group-prepend" style="margin-left:30px;">
                    <span class="input-group-text">地区</span>
                </div>
                <input type="text" class="form-control" name="state"th:value="${state}">
                <input type="submit" value="查询" class="btn btn-primary" style="margin-left:30px;"/>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <table class="table table-hover table-striped text-center">
                <thead>
                    <tr>
                        <th class="col-3">国家</th>
                        <th class="col-3">地区</th>
                        <th class="col-3">总共确诊</th>
                        <th class="col-3">新增确诊</th>
                    </tr>
                </thead>
                <tr th:each="item : ${list}">
                    <td th:text="${item.country}">country</td>
                    <td th:text="${item.state}">state</td>
                    <td th:text="${item.latestTotalCases}">latestTotalCases</td>
                    <td th:text="${item.diffFromPrevDay}">diffFromPrevDay</td>
                </tr>
            </table>
        </div>
    </div>
</div>

</body>
</html>